<?php /* Smarty version 2.6.22, created on 2009-04-20 19:24:48
         compiled from con_admin.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'html_image', 'con_admin.tpl', 118, false),)), $this); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--DVID=00001DE9-->
<HTML>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<LINK href="frmm.css" rel="stylesheet" type="text/css">
<title>慕主先鋒教會</title>
</head>
 
<body>
<div id="container"> 
  <h1><img src="frmmtitlePic.jpg" width="785" height="75"></h1>
   
  <div id="thick-colnew"> 
    <form name="form1" method="post" action="con_admin.php">
      <p>輸入特會認證號碼： 
        <input name="rid" type="text" size="5" maxlength="7" >
        or</p>
      <p>First Name: 
        <input name="firstname" type="text" size="15" maxlength="25">
        Last Name: 
        <input name="lastname" type="text" size="15" maxlength="25">
      </p>
      <p> 
        <input type="submit" name="Submit" value="Submit">
        <input type="submit" name="Submit2" value="Conference Report">
      </p>
    </form>
  </div>
<?php if (( $this->_tpl_vars['nflag'] == 'Y' )): ?>
<div id="thick-colnew1">
    <table class="frmm1">
<tr> 
   <th>rid</th>
   <th>中文姓名</th>  
   <th>牧者 Pastor</th>      
   <th>英文名First Name</th>            
   <th>英文姓 Last Name</th>
   <th>家裡電話Home Phone</th>
   <th>州State</th>
   <th>國家Country</th>
</tr>
  <?php unset($this->_sections['query']);
$this->_sections['query']['name'] = 'query';
$this->_sections['query']['loop'] = is_array($_loop=$this->_tpl_vars['data1']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['query']['show'] = true;
$this->_sections['query']['max'] = $this->_sections['query']['loop'];
$this->_sections['query']['step'] = 1;
$this->_sections['query']['start'] = $this->_sections['query']['step'] > 0 ? 0 : $this->_sections['query']['loop']-1;
if ($this->_sections['query']['show']) {
    $this->_sections['query']['total'] = $this->_sections['query']['loop'];
    if ($this->_sections['query']['total'] == 0)
        $this->_sections['query']['show'] = false;
} else
    $this->_sections['query']['total'] = 0;
if ($this->_sections['query']['show']):

            for ($this->_sections['query']['index'] = $this->_sections['query']['start'], $this->_sections['query']['iteration'] = 1;
                 $this->_sections['query']['iteration'] <= $this->_sections['query']['total'];
                 $this->_sections['query']['index'] += $this->_sections['query']['step'], $this->_sections['query']['iteration']++):
$this->_sections['query']['rownum'] = $this->_sections['query']['iteration'];
$this->_sections['query']['index_prev'] = $this->_sections['query']['index'] - $this->_sections['query']['step'];
$this->_sections['query']['index_next'] = $this->_sections['query']['index'] + $this->_sections['query']['step'];
$this->_sections['query']['first']      = ($this->_sections['query']['iteration'] == 1);
$this->_sections['query']['last']       = ($this->_sections['query']['iteration'] == $this->_sections['query']['total']);
?>

    <tr> 
      <td align="left" valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['rid']; ?>
</td>
      <td align="left" valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['cname']; ?>
</td>
	  <td align="left" valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['pastor']; ?>
</td>
      <td align="left" valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['first_name']; ?>
</td>
      <td valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['last_name']; ?>
</td>
      <td valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['home_phone']; ?>
</td>
      <td valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['state']; ?>
</td>
      <td valign="top"><?php echo $this->_tpl_vars['data1'][$this->_sections['query']['index']]['country']; ?>
</td>
    </tr>

<?php endfor; endif; ?>
</table>
</div>
<?php endif; ?>

<?php if (( $this->_tpl_vars['rid'] >= 10000 )): ?>
<div id="thick-colnew1">

 <center><h1>2009 夏令會註冊確認 <br>Confirmation Summary</h1></center>
 <table class="frmm1">
 <tr> 
 <th width="20%">日期 Registration Date</th>
 <th>特會確認號碼 Registration Number</th>
 </tr>
 <tr>
 <td> <?php echo $this->_tpl_vars['create_date']; ?>
</td>
 <td><?php echo $this->_tpl_vars['rid']; ?>
</td>
 </tr>
</table>
	
    <p><?php unset($this->_sections['customer']);
$this->_sections['customer']['name'] = 'customer';
$this->_sections['customer']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['customer']['show'] = true;
$this->_sections['customer']['max'] = $this->_sections['customer']['loop'];
$this->_sections['customer']['step'] = 1;
$this->_sections['customer']['start'] = $this->_sections['customer']['step'] > 0 ? 0 : $this->_sections['customer']['loop']-1;
if ($this->_sections['customer']['show']) {
    $this->_sections['customer']['total'] = $this->_sections['customer']['loop'];
    if ($this->_sections['customer']['total'] == 0)
        $this->_sections['customer']['show'] = false;
} else
    $this->_sections['customer']['total'] = 0;
if ($this->_sections['customer']['show']):

            for ($this->_sections['customer']['index'] = $this->_sections['customer']['start'], $this->_sections['customer']['iteration'] = 1;
                 $this->_sections['customer']['iteration'] <= $this->_sections['customer']['total'];
                 $this->_sections['customer']['index'] += $this->_sections['customer']['step'], $this->_sections['customer']['iteration']++):
$this->_sections['customer']['rownum'] = $this->_sections['customer']['iteration'];
$this->_sections['customer']['index_prev'] = $this->_sections['customer']['index'] - $this->_sections['customer']['step'];
$this->_sections['customer']['index_next'] = $this->_sections['customer']['index'] + $this->_sections['customer']['step'];
$this->_sections['customer']['first']      = ($this->_sections['customer']['iteration'] == 1);
$this->_sections['customer']['last']       = ($this->_sections['customer']['iteration'] == $this->_sections['customer']['total']);
?> </p>
    <table class="frmm1">
<tr> 
   <th>&nbsp;</th>
   <th>中文姓名</th>      
   <th>英文名First Name</th>            
   <th>英文姓 Last Name</th>
   <th>性別 Gender</th>
   <th>關係 Relationship</th>
   <th>組別 Group</th>
</tr>
    <tr> 
      <td align="left" valign="top"><?php echo $this->_sections['customer']['index']+1; ?>
.</td>
          <td align="left" valign="top"><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['cname']; ?>
</td>
      <td align="left" valign="top"><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['first_name']; ?>
</td>
      <td valign="top"><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['last_name']; ?>
</td>
          <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['gender'] == 'M'): ?> 男 Male <?php else: ?> 女 Female<?php endif; ?></td>
	      <td><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['relationship']; ?>
</td>
          <td><?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['groups']; ?>
</td>
    </tr>
</table>
<table class="frmm1">
<tr>
<th width="3%"></th>     
<th width="26%">餐數 Meal </th>
<th width="30%">參加堂數 Section to Attend</th>
<th width="38%">特別需要 Special Need</th> 
</tr>
<tr>
<td align="left" valign="top">   </td>
<td valign="TOP">
	  <table class="frmm2">
         <tr align="center" valign="top"> 
                  <td height="15"><font size="3">日期 Date</font></td>
                  <td><font size="3">7/2</font></td>
                  <td><font size="3">7/3</font></td>
                  <td><font size="3">7/4</font></td>
                  <td><font size="3">7/5</font></td>
                  <td><font size="3">7/6</font></td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3">午餐 Lunch </font></td>                  
                <td><font size="2">N/A</font></td>
                  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal2'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal4'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal6'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal8'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>                  
                </tr>
                <tr align="center" valign="top"> 
                  <td height="35"><font size="3">晚餐 Dinner </font></td>
                  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal1'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal3'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal5'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['meal7'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>              
                  <td><font size="2">N/A</font></td>
                </tr>
            </table>
</td>
      <td valign="top">
	  	  <table class="frmm2">
              <tbody>
                <tr align="center" valign="top"> 
                  <td><font size="3">日期 Date</font></td>
                  <td><font size="3">7/2</font></td>
                  <td><font size="3">7/3</font></td>
                  <td><font size="3">7/4</font></td>
                  <td><font size="3">7/5</font></td>
                  <td><font size="3">7/6</font></td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3">早上Morning</font></td>
                  <td><font size="2">N/A</font></td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session2'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session5'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
    			  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session6'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session11'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3" >下午Afternoon</font></td>
                  
                <td><font size="3" > <font size="2">N/A</font></font></td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session3'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
    			  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session6'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session9'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                  <td><font size="2">N/A</font></td>
                </tr>
                <tr align="center" valign="top"> 
                  <td><font size="3">晚上Evening</font></td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session1'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
    			  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session4'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
				  <td><?php if ($this->_tpl_vars['data'][$this->_sections['customer']['index']]['session7'] == 1): ?> <?php echo smarty_function_html_image(array('file' => 'check.gif'), $this);?>
 <?php else: ?>  <?php echo smarty_function_html_image(array('file' => 'uncheck.gif'), $this);?>
 <?php endif; ?> </td>
                  <td><font size="2">N/A</font></td>
				  <td>&nbsp;</td>
                </tr>
              </tbody>
            </table>
	  </td>
          <td valign="TOP"> <?php echo $this->_tpl_vars['data'][$this->_sections['customer']['index']]['special_need']; ?>
</td>    
    </tr>  
  </table>
<?php endfor; endif; ?> 
<center>
      <br>
      <strong><font color="#000000">* 您可以印下此頁做為特會註冊憑據 *</font></strong><br> 
    </center>

</div>
<?php endif; ?>
</div>

</body>
</html>